public class Book {
    private String name;
    private int prince;
    private String autor;
    private String type;
    private Boolean isGive;

    public Book(String name,int prince,String autor, String type){
        this.name = name;
        this.prince = prince ;
        this.autor = autor;
        this.type = type;
        this.isGive =false;
    }


    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", prince=" + prince +
                ", autor='" + autor + '\'' +
                ", type='" + type + '\'' +
                ", isGive=" + (isGive==true?"已借出":"未借出") +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrince() {
        return prince;
    }

    public void setPrince(int prince) {
        this.prince = prince;
    }

    public String getAutor() {
        return autor;
    }

    public void setAutor(String autor) {
        this.autor = autor;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getGive() {
        return isGive;
    }

    public void setGive(Boolean give) {
        isGive = give;
    }
}
